﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlReportThongTinTuyenDuong.ascx.cs" Inherits="UserControl_ControlReportThongTinTuyenDuong" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<%@ Register assembly="DevExpress.Web.ASPxTreeList.v9.2.Export" namespace="DevExpress.Web.ASPxTreeList.Export" tagprefix="dxwtl" %>
<%@ Register assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTreeList" tagprefix="dxwtl" %>



<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:PostBackTrigger ControlID="imgBtnSave" />
<asp:PostBackTrigger ControlID="ImgBtnPivot" />
</Triggers>
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Báo cáo thông tin tuyến đường
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                    <asp:ImageButton ID="imgBtnAdd" CausesValidation="false" onclick="imgBtnAdd_Click" ToolTip="Lấy dữ liệu"  ImageUrl="~/Images/Document.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnSave" onclick="imgBtnSave_Click" CausesValidation="false" ToolTip="Xuất ra file excel dạng thường" ImageUrl="~/Images/download.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="ImgBtnPivot" onclick="ImgBtnPivot_Click" CausesValidation="false" ToolTip="Xuất ra file excel dạng pivot" ImageUrl="~/Images/rename.png" Width="32px" Height="32px" runat="server" />
                    
                </div>
                <!-- End Button chuc nang-->
                <div class="direct_container_main">
                   
                           
                       
                </div>
                <!-- End Button chuc nang-->
                
               
       
        <dxwtl:ASPxTreeList ID="ASPxTreeList1" AutoGenerateColumns="true"   KeyFieldName="salesp_key"
                 runat="server"  ParentFieldName="Recommender"
                onvirtualmodecreatechildren="ASPxTreeList1_VirtualModeCreateChildren" 
                onvirtualmodenodecreating="ASPxTreeList1_VirtualModeNodeCreating">
               <Columns>
               <dxwtl:TreeListTextColumn Caption="Mã TDV" FieldName="salesp_key" 
                    VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                 <dxwtl:TreeListTextColumn Caption="Họ tên TDV" FieldName="salesp_name" 
                    VisibleIndex="1">
                </dxwtl:TreeListTextColumn>
                
                
                 <dxwtl:TreeListTextColumn Caption="Cấp bậc" FieldName="CapBac" 
                    VisibleIndex="3">
                </dxwtl:TreeListTextColumn>
                
                </Columns>
                
            </dxwtl:ASPxTreeList>
       <dxwtl:ASPxTreeListExporter TreeListID="ASPxTreeList1" ID="ASPxTreeListExporter1" runat="server">
        </dxwtl:ASPxTreeListExporter>
  </ContentTemplate>
  </asp:UpdatePanel>